home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / afxvbx.zip / APP.CPP < prev    next >
C/C++ Source or Header  |  1993-06-02  |  2KB  |  30 lines

  1. /*------------------------------------------------------------------------------* 
  2.  |                                                                              |
  3.  |                          File Name: CALLER.CPP                               |
  4.  |                                                                              |
  5.  | Description:  This file contains the InitInstance() for the CWinApp derived  |
  6.  |               class of the calling application.  It simply calls InitAfxVbx()|
  7.  |               which is a function in a AFXDLL.  The AFXDLL creates the main  |
  8.  |               window and all the resources used by the application.          |
  9.  |                                                                              |
  10.  | History:      Date              Author                Comment                |
  11.  |             05/23/93      Pran Punniamoorthy          Created                |
  12.  |                                                                              |
  13.  *------------------------------------------------------------------------------*/
  14. #include <afxwin.h>   
  15. #include <afxext.h>
  16. #include "app.h"  // Class definitions for this application
  17.  
  18. extern "C" extern void _export WINAPI InitAfxVbx();  
  19.  
  20. CTheApp theApp;     
  21.  
  22. BOOL CTheApp::InitInstance()
  23. {
  24.     EnableVBX();               // VB Initialization function
  25.     SetDialogBkColor();        // set dialog background color
  26.     InitAfxVbx();              // This function is in the DLL
  27.  
  28.     return TRUE;
  29. }
  30.